package com.yonyou.cyxdms.basedata.client.service.basedata;

import com.yonyou.cyxdms.basedata.client.domains.vo.PageTemplateConfVO;
import com.yonyou.cyxdms.basedata.client.feign.BaseDataCommonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 动态页面模板配置信息的值
 *
 * @author renwd
 * @since 2019/9/24
 */

@Service
public class BasePageTemplateConfServiceImpl implements BasePageTemplateConfService {

    @Autowired
    private BaseDataCommonClient baseDataCommonClient;

    /**
     * 根据配置代码查询页面模板配置信息
     *
     * @param confCode
     * @return java.util.List<com.yonyou.cyxdms.basedata.client.domains.vo.PageTemplateConfVO>
     * @author renwd
     * @since 2019/9/24
     */
    @Override
    public List<PageTemplateConfVO> listPageTemplateConfByConfCode(Integer confCode) {
        return baseDataCommonClient.listPageTemplateConfByConfCode(confCode).getData();
    }

    /**
     * 根据配置代码查询页面模板配置信息()
     *
     * @param confCode  confCode
     * @param appId     appId
     * @param ownerCode ownerCode
     * @return java.util.List<com.yonyou.cyxdms.basedata.client.domains.vo.PageTemplateConfVO>
     * @author renwd
     * @since 2019/10/8
     */
    @Override
    public List<PageTemplateConfVO> listPageTemplateConfWithoutLoginInfo(Integer confCode, String appId, String ownerCode) {
        return baseDataCommonClient.listPageTemplateConfWithoutLoginInfo(confCode, appId, ownerCode).getData();
    }
}
